﻿/*========================================================================================
	TASK 5:                                                          {Console InputOutput}
	Write a program that gets two numbers from the console and prints the greater of them.
    Don’t use if statements.   
========================================================================================*/

using System;

class GreaterOfTwoNumbers
{
    static void Main()
    {
        Console.Write("Enter first number a=");
        float a = float.Parse(Console.ReadLine());

        Console.Write("Enter second number b=");
        float b = float.Parse(Console.ReadLine());

        float smaller = ((a + b - Math.Abs(a - b)) / 2);
        float greater = ((a + b + Math.Abs(a - b)) / 2);
        Console.WriteLine("Smaller number is {0}", smaller);
        Console.WriteLine("Greater number is {0}", greater);
    }
}

